using UnityEngine;
using System.Collections;

public class Currency : MonoBehaviour 
{
	//public static int mCurrency; 
	public int moneyTest = 0;
	public int mInitial = 0;
    public bool startFresh = false;

    private float GuiOffsetX = 0f;
    private float GuiOffsetY = 0f;
    public float GuiOffsetW = 104.5f;
    private float GuiOffsetH = 25f;

     
	public GUIStyle myCustomGUIStyle;


	void Start () 
	{
        if (!PlayerPrefs.HasKey("Currency"))
        {
            if (PlayerPrefs.GetString("PlayerShip") == "Goldy")
            {
                PlayerPrefs.SetInt("Currency", mInitial + 400);
            }
            else
            {
                PlayerPrefs.SetInt("Currency", mInitial);
            }
        }
    }
	
	void Update()
	{
	}
    void OnGUI()
    {
        GUI.depth = 0;
        GUI.Label(new Rect(0, GuiOffsetY-1 , GuiOffsetW, GuiOffsetH),"Currency: "+PlayerPrefs.GetInt("Currency").ToString(),myCustomGUIStyle);
		
    }
}
